package com.qiwx.pigeon.Utils;

import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;

/**
 * @author: zhouzc
 * @email: zhouzc@jingzhengu.com
 * @time: 2017/3/31 14:28
 * @desc:
 */

public class ReferenceUtil {
    public static boolean checkNull(SoftReference softReference){
        if(softReference==null || softReference.get() == null){
            return true;
        }
        return false;
    }
    public static boolean checkNull(WeakReference weakReference){
        if(weakReference==null || weakReference.get() == null){
            return true;
        }
        return false;
    }
}
